﻿using BackData;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Rabbit.API.Application.Command.Goods
{
    /// <summary>
    /// 商品添加功能
    /// </summary>
    public class GoodsAddCommand : IRequest<APIResult<int>>
    {
        /// <summary>
        /// 商品名称
        /// </summary>
        public string? GoodsName { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>

        public string? CreateBatch { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public int? ExpireTime { get; set; }
        /// <summary>
        /// 生产许可证号
        /// </summary>
        public string? CreateCode { get; set; }
        /// <summary>
        /// 生产公司
        /// </summary>
        public string? CreateCompany { get; set; }
        /// <summary>
        /// 序列化的封面图片路径
        /// </summary>   
        public string? Covers { get; set; }
        /// <summary>
        /// 序列化的检验图片路径
        /// </summary>   
        public string? Tests { get; set; }
        /// <summary>
        /// 完成度
        /// </summary>
        public string? Proportion { get; set; } = "0%";
        /// <summary>
        /// 养殖外键
        /// </summary>
        public long BreedId { get; set; } = 1;
        /// <summary>
        /// 屠宰外键
        /// </summary>
        public long KillId { get; set; } = 1;
        /// <summary>
        /// 深加工外键
        /// </summary>
        public long FinishStepId { get; set; } = 1;

    }
}
